﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using RentAWorker.DataAccess.Entities;

namespace RentAWorker.DataAccess.Interfaces
{
    public interface IRentalServiceAccess
    {
        RentalService GetRentalService(int rentalServiceId);
        IEnumerable<RentalService> GetRentalServicesByCustomer(int customerId);
        IEnumerable<RentalService> GetRentalServicesByState(string state, DateTime fromDate, DateTime toDate);
        IEnumerable<RentalService> GetRentalServicesByResource(int resourceId, DateTime fromDate, DateTime toDate);

        RentalService UpdateRentalService(RentalService updateService);
        RentalService CreateRentalService(RentalService newService);
        void DeleteRentalService(int rentalServiceId);

        IEnumerable<RentalServiceState> GetRentalServiceStates();
    }
}
